export function isLogin() {
	return uni.getStorageSync('token') && uni.getStorageSync('userInfo') ? true : false
}

export function setLogin(userInfo, token) {
	uni.setStorageSync('userInfo', userInfo)
	uni.setStorageSync('token', token)
	return true
}

export function setLogout() {
	uni.removeStorageSync('userInfo')
	uni.removeStorageSync('token')
	return true
}

export function getToken() {
	return uni.getStorageSync('token')
}

export function setToken(token) {
  return uni.setStorageSync('token', token)
}

export function getUserInfo() {
	return uni.getStorageSync('userInfo')
}

export function setUserInfo(userInfo) {
	return uni.setStorageSync('userInfo', userInfo)
}